From: Sebastian Kemper Date: Sun, 11 Feb 2018 18:29:19 +0000 (+0100) Subject: kamailio-5.x: run make cfg X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=0d8d91c39bf7c4ce61e8649ae4fc5662fe51ed64;p=feed%2Ftelephony.git kamailio-5.x: run make cfg The INSTALL file from kamailio suggests to make the target "cfg" first. All settinggs will then be reused when make is called again. This has the side effect that "$(FPIC)" can be dropped from CFLAGS as the build system adds the flags automatically now. Signed-off-by: Sebastian Kemper --- diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 1fdacb7..1a65daf 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -25,7 +25,9 @@ include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/package.mk include $(TOPDIR)/feeds/packages/lang/python/python-host.mk -TARGET_CFLAGS += $(FPIC) -DVERSION_NODATE=1 +# Build reproducibly +TARGET_CFLAGS += -DVERSION_NODATE=1 + PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS) @@ -142,8 +144,9 @@ PKG_MAKE_ARGS:= \ quiet=verbose define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) all - $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) install + $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) cfg + $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose all + $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose install endef $(eval $(call BuildPackage,kamailio5))